using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Nicknames.Info
{
    /// <summary>
    ///This class reflects the same structure than the one defined in javascript object model
    /// function NickObject(friendID, nick, friendName, photoUrl,profileUrl, id){
    ///  this.friendID = friendID;
    ///  this.nick = nick;
    ///  this.friendName = friendName;
    ///  this.photoUrl = photoUrl;
    ///  this.profileUrl = profileUrl;
    ///  this.id = id;
	///  }
    /// Review: http://nicknameshi5.googlecode.com/svn/trunk/src/nickNamesApi.js
    /// </summary>
    [Serializable]
    public class NickInfo
    {
        #region " Properties "

        /// <summary>
        /// Owner of the nick
        /// </summary>
        private long _nickOwnerID;
        [XmlAttribute("NickOwnerID")]
        public long NickOwnerID
        {
            get { return _nickOwnerID; }
            set { _nickOwnerID = value; }
        }
	

        /// <summary>
        /// The friend id who gave the nick
        /// </summary>
        private long _friendID;
        [XmlAttribute("FriendID")]
        public long FriendID
        {
            get { return _friendID; }
            set { _friendID = value; }
        }

        /// <summary>
        /// The given nickname
        /// </summary>
        private string _nickName;
        [XmlAttribute("NickName")]
        public string NickName
        {
            get { return _nickName; }
            set { _nickName = value; }
        }

        /// <summary>
        /// Name of the friend who gave the nick
        /// </summary>
        private string _friendName;
        [XmlAttribute("FriendName")]
        public string FriendName
        {
            get { return _friendName; }
            set { _friendName = value; }
        }

        /// <summary>
        /// Url of the profile photo of the friend who gave the nick
        /// </summary>
        private string _photoUrl;
        [XmlAttribute("PhotoUrl")]
        public string PhotoUrl
        {
            get { return _photoUrl; }
            set { _photoUrl = value; }
        }

        /// <summary>
        /// Profile Url of the friend who gave the nick
        /// </summary>
        private string _profileUrl;
        [XmlAttribute("ProfileURL")]
        public string ProfileURL
        {
            get { return _profileUrl; }
            set { _profileUrl = value; }
        }

        /// <summary>
        /// Id of the nick. Use DateTime.Now.Ticks to set this property
        /// </summary>
        private long id;
        [XmlAttribute("ID")]
        public long ID
        {
            get { return id; }
            set { id = value; }
        }


        #endregion properties

        #region " ctor "

        /// <summary>
        /// 
        /// </summary>
        public NickInfo()
        {
        }

        #endregion ctor
    }
}
